package com.zhen.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhen.mybatis.domain.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserMapper extends BaseMapper<User> {
    @Select("select t.* from user t where t.name = #{name}")
    List<User> queryUserAll(String name);
}
